import request from "@/utils/request";

// 查询友情链接列表
export function listBizFriendLink(query) {
  return request({
    url: "/biz/bizFriendLink/list",
    method: "get",
    params: query,
  });
}

// 查询友情链接详细
export function getBizFriendLink(id) {
  return request({
    url: "/biz/bizFriendLink/" + id,
    method: "get",
  });
}

// 新增友情链接
export function addBizFriendLink(data) {
  return request({
    url: "/biz/bizFriendLink",
    method: "post",
    data: data,
  });
}

// 修改友情链接
export function updateBizFriendLink(data) {
  return request({
    url: "/biz/bizFriendLink",
    method: "put",
    data: data,
  });
}

// 删除友情链接
export function delBizFriendLink(id) {
  return request({
    url: "/biz/bizFriendLink/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizFriendLink/findMaxSort",
    method: "get",
  });
}
// 导出友情链接
export function exportBizFriendLink(query) {
  return request({
    url: "/biz/bizFriendLink/export",
    method: "get",
    params: query,
  });
}

/**
 * 工作台
 * @param {} query
 * @returns
 */
export function getWorksIndex(query) {
  return request({
    url: "/biz/worksIndex/works",
    method: "get",
    params: query,
  });
}

export function anHuanPaiMing(query) {
  return request({
    url: "/biz/worksIndex/anHuanPaiMing",
    method: "get",
    params: query,
  });
}
